﻿using System.Configuration;
using System.IO;

namespace DVK.ConstantsGenerator
{
    class Program
    {
        static void Main(string[] args)
        {
            if (File.Exists(ConfigurationManager.AppSettings["SiteColumnsFilePath"]))
                FieldsGenerator.Generate();
            if (File.Exists(ConfigurationManager.AppSettings["ContentTypesFilePath"]))
                ContentTypesGenerator.Generate();
            if (File.Exists(ConfigurationManager.AppSettings["ListsPath"]))
                ListsGenerator.Generate();
        }
    }
}
